package com.dave.gd.sysmgr.domain.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.dave.gd.core.base.entity.impl.AbstractBaseEntity;
import com.dave.gd.core.base.repository.RepositoryRegister;
import com.dave.gd.sysmgr.domain.repository.IUserRoleRepository;

@Table(name = "el_user_role")
public class UserRole implements Serializable{ //extends AbstractBaseEntity<Integer> {
    
    /**
     * .
     */
    private static final long serialVersionUID = -7002364901224044334L;
    
    /**
     * 
     */
    @Id
    @Column(name = "id")
    private Integer id = 0;
    
    /**
     * 
     */
    @Column(name = "createtime")
    private Timestamp createtime;
    
    /**
     * 
     */
    @Column(name = "uid")
    private int uid;
    
    /**
     * 
     */
    @Column(name = "role_id")
    private int roleId;
    
    /**
     * 
     */
    @Column(name = "state")
    private String state;
    
    /**
     * 
     */
    @Column(name = "modifyer")
    private int modifyer;
    
    /**
     * 
     */
    @Column(name = "uptime")
    private Timestamp uptime;
    
    /**
     * 
     */
    @Column(name = "creater")
    private int creater;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public int getModifyer() {
        return modifyer;
    }

    public void setModifyer(int modifyer) {
        this.modifyer = modifyer;
    }

    public Timestamp getUptime() {
        return uptime;
    }

    public void setUptime(Timestamp uptime) {
        this.uptime = uptime;
    }

    public int getCreater() {
        return creater;
    }

    public void setCreater(int creater) {
        this.creater = creater;
    }
    
    
    
  /*  @Override
    public Integer getId() {
        return this.id;
    }
    
    @Override
    public void setId(Integer id) {
        this.id = id;
    }
    public static IUserRoleRepository repository() {
        return (IUserRoleRepository) RepositoryRegister.getInstance()
                .getRepository(UserRole.class);
    }*/
}
